import {Injectable} from '@angular/core';
import {Http, Response} from '@angular/http';
import { Observable } from 'rxjs/Rx';
@Injectable()
export class EventService {

    constructor(private http: Http) {}

    getEvents() {
      return this.http.get('app/resources/data/eventservice.json').map(res => {
      return res.json().data;

      });
    }
}
